import type { UserConfig } from 'vite'
import react from '@vitejs/plugin-react'
import path from 'path'

const config: UserConfig = {
  base: process.env.NODE_ENV === 'development' ? '' : '/react',
  resolve: {
    alias: { '@': path.resolve(__dirname, './') }
  },
  plugins: [react()],
  server: { port: 3333 }
}

export default config
